﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar; 
using MyHotel.MyHotel_MHPhanQuyen_BUS_Webservice;

namespace MyHotel
{
    public partial class frmAuthorization : Office2007Form
    {
        MyHotel.MyHotel_MHPhanQuyen_BUS_Webservice.Menu[] listMenu; 


        public frmAuthorization()
        {
            InitializeComponent();
        }

        private void loadListMenu()
        {
            MHPhanQuyenBUSWSSoapClient ws = new MHPhanQuyenBUSWSSoapClient();
            listMenu = ws.getListMenu(); 

            foreach (MyHotel.MyHotel_MHPhanQuyen_BUS_Webservice.Menu mnu in listMenu)
            {
                checkedListMenu.Items.Add(mnu.TenMenu, CheckState.Unchecked);
            }
        }
         
        private void frmAuthorization_Load(object sender, EventArgs e)
        {
            loadListMenu();
        }

        private void treeViewChucVu_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            
        } 
    }
}